package com.tas.sys.service;

import com.tas.anno.AsyncMethod;
import com.tas.enums.StrategyEnum;
import org.noear.solon.annotation.Component;

/**
 * @author kevin
 */
@Component
public class AsyncService {


  /**
   * 异步批量执行...
   * @param batchId
   */
  @AsyncMethod(strategy = StrategyEnum.DIRECT)
  public void batchHandler(String batchId){
    System.out.println("这里应该异步执行： [id]=" + batchId);
  }
}
